import { getQuestionStatInfo } from "../service";
import { useRequest } from "ahooks";

const useLoadQuestionStat = (id:string)=>{
    const {loading,data} = useRequest(()=>{
        return getQuestionStatInfo(id)
    })
    return {
        loading,
        data
    }
}

export default useLoadQuestionStat
